//
//  HYYPopoverViewController.swift
//  Hyy9Weibo
//
//  Created by Air on 16/3/31.
//  Copyright © 2016年 hyy. All rights reserved.
//

import UIKit

class HYYPopoverViewController: UITableViewController {

    let titles = ["首页","好友圈","群微博","我的微博","新荡微博"]
    private let reuseIdentifier = "ReuseIdentifier"
    
    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: reuseIdentifier)
    }



    // MARK: - Table view data source
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return titles.count
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier(reuseIdentifier, forIndexPath: indexPath)
        cell.textLabel?.text = titles[indexPath.row]
        return cell
        
    }

}
